package com.archgeek.scala.code

/**
 *
 * @author pizhihui
 * @date 2023-12-02 17:06
 */

class CreateBatchRequest {

  // 操作类型 具体见: Constants
  var opType = ""

  var taskName = ""

  // 主键id
  var id: Option[Int] = None
  var hdfsPath: Option[String] = None
  var outputHdfsPath: Option[String] = None
  var cluster: Option[String] = None
  var tableName: Option[String] = None
  var queue: Option[String] = None
  var exportType: Option[String] = None
  var labelIds: Option[String] = None
  var redisCluster: Option[String] = None

  // START_PROCESS DS_SCHEDULER RECOVERABLE
  var commandType: Option[String] = None

  val timestamp: Option[String] = Some("")

//  override def toString: String = {
//    JsonUtil.generate(this)
//  }

  override def hashCode(): Int = id.get


}